home *** CD-ROM | disk | FTP | other *** search
/ AMIGA PD 1 / AMIGA-PD-1.iso / NetBSD / docs-netbsd / Mailinglist-Archive / 1994-08.gz / 1994-08 / 000184_owner-current-u…s.berkeley.edu_Thu Aug 4 06:43:55 1994.msg < prev    next >
Text File  |  1994-10-16  |  831b  |  30 lines

  1. From: "John F. Woods" <jfw@jfwhome.funhouse.com>
  2. To: current-users@sun-lamp.cs.berkeley.edu
  3. Subject: sort is broken + fix
  4. Sender: owner-current-users@sun-lamp.cs.berkeley.edu
  5.  
  6. sort doesn't work for multiple files if one of the files is stdin (-).
  7. I've just submitted a PR for this, including the following fix:
  8. *** sort.c.orig    Wed Aug  3 23:02:40 1994
  9. --- sort.c    Wed Aug  3 23:02:42 1994
  10. ***************
  11. *** 1487,1496 ****
  12.         if (*s)
  13.           badfieldspec (argv[i]);
  14.       }
  15. !       else if (argv[i][0] == '-')
  16.       {
  17. -       if (!strcmp ("-", argv[i]))
  18. -         break;
  19.         s = argv[i] + 1;
  20.         if (digits[UCHAR (*s)])
  21.           {
  22. --- 1487,1494 ----
  23.         if (*s)
  24.           badfieldspec (argv[i]);
  25.       }
  26. !       else if (argv[i][0] == '-' && argv[i][1])
  27.       {
  28.         s = argv[i] + 1;
  29.         if (digits[UCHAR (*s)])
  30.           {